<%@ page contentType="text/html;charset=UTF-8" %>    
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<c:set var="sysName" value="imp"/>
<c:set var="page_admin" value="${pageContext.request.contextPath}/sendPage/imp/admin"/>
		<li class="treeview " userKey="">
			<a href="javascript:void('0');">
			<i class="fa fa-cog"></i> <span>客户管理	</span><i class="fa fa-angle-left pull-right"></i>
			</a>
			<ul class="treeview-menu" >
				<li id="customer-add-person" class="" userKey=""><a data-load="true" href="${ctx}/sendPage/member/admin/customer/customer-add-person"><i class="fa fa-circle-o"></i>客户开户（个人）</a></li>
				<li id="customer-add-org" class="" userKey=""><a data-load="true" href="${ctx}/sendPage/member/admin/customer/customer-add-org"><i class="fa fa-circle-o"></i>客户开户（企业）</a></li>
				<li id="customer-list" class="" userKey=""><a data-load="true" href="${ctx}/sendPage/member/admin/customer/customer-list"><i class="fa fa-circle-o"></i>客户管理</a></li>
				<li id="customer-credit" class="" userKey=""><a data-load="true" href="${ctx}/sendPage/member/admin/customer/customer-credit"><i class="fa fa-circle-o"></i>客户信用管理</a></li>
			</ul>
		</li>
		<li class="treeview " userKey="">
			<a href="javascript:void('0');">
			<i class="fa fa-cog"></i> <span>会员管理</span><i class="fa fa-angle-left pull-right"></i>
			</a>
			<ul class="treeview-menu" >
				<li id="memberType-list" class="" userKey=""><a data-load="true" href="${ctx}/sendPage/member/admin/member/memberType-list"><i class="fa fa-circle-o"></i>会员类型定义</a></li>
				<li id="memberRole-list" class="" userKey=""><a data-load="true" href="${ctx}/sendPage/member/admin/member/memberRole-list"><i class="fa fa-circle-o"></i>会员类型授权</a></li>
				<li id="member-reg" class="" userKey=""><a data-load="true" href="${ctx}/sendPage/member/admin/member/member-reg"><i class="fa fa-circle-o"></i>会员开户</a></li>
				<li id="member-gl" class="" userKey=""><a data-load="true" href="${ctx}/sendPage/member/admin/member/member-gl"><i class="fa fa-circle-o"></i>会员管理</a></li>
				<li id="member-act" class="" userKey=""><a data-load="true" href="${ctx}/sendPage/member/admin/member/member-act"><i class="fa fa-circle-o"></i>会员授权</a></li>
				<li id="member-payment" class="" userKey=""><a data-load="true" href="${ctx}/sendPage/member/admin/member/member-payment"><i class="fa fa-circle-o"></i>会员缴费管理</a></li>
				<li id="member-violation" class="" userKey=""><a data-load="true" href="${ctx}/sendPage/member/admin/member/member-violation"><i class="fa fa-circle-o"></i>会员违规管理</a></li>
				<li id="member-org-list" class="" userKey=""><a data-load="true" href="${ctx}/sendPage/member/admin/member/org-list"><i class="fa fa-circle-o"></i>机构管理</a></li>
				<li id="member-user-list" class="" userKey=""><a data-load="true" href="${ctx}/sendPage/member/admin/member/member-user-list"><i class="fa fa-circle-o"></i>账号管理</a></li>
			</ul>
		</li>
		<li class="treeview " userKey="">
			<a href="javascript:void('0');">
			<i class="fa fa-cog"></i> <span>用户管理</span><i class="fa fa-angle-left pull-right"></i>
			</a>
			<ul class="treeview-menu" >
				<li id="user-list" class="" userKey=""><a data-load="true" href="${ctx}/sendPage/member/admin/user/user-list"><i class="fa fa-circle-o"></i>员工管理</a></li>
				<li id="org-list" class="" userKey=""><a data-load="true" href="${ctx}/sendPage/member/admin/org/org-list"><i class="fa fa-circle-o"></i>机构管理</a></li>
			</ul>
		</li>

<script>
  	 	//part1、注入jquery.pjax 绑定A标签点击事件
      	$(document).pjax("[data-pjax='true'], a[data-pjax='true']", ".content-wrapper", {
       		fragment: ".content-wrapper"
      	});
	  	//$(document).pjax('a', '#pjax-container');
	  	$(document).on("pjax:send", function() { 
			//alert("发送完成");
		}); 
		$(document).on("pjax:complete", function(resultData) { 
	  		//alert("加载完成");
	  		showClickMenu();
		});
		
		//part2、注入jquery.load 绑定A标签load事件
		$("[data-load='true']").each(function(){
			var thisHref = $(this).attr("href");
			$(this).attr("load-url",thisHref);
			$(this).attr("href","javascript:;");
			$(this).click(function(){
				$(".content-wrapper").load(thisHref+" .content-wrapper>",function(resultData){
					 //alert(resultData);
					 $result = $(resultData);
			         $result.find("script").appendTo(".content-wrapper");//保证子页面的js内容能被引入进来
			         showClickMenu();
				});
			});
		});
 </script>
